<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	
	>


<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<link rel="stylesheet" type="text/css" href="style/createTicket.css" />

</head>
<body>

<f:view>
 <t:inputHidden value="#{user.isSignedAsUser}" />  
<h:form>
 <p align="right"><t:commandLink value="Sign Out"  action="#{user.signOut}" /></p>
     
      <br></br><br></br>
      
	<h1>Create your ticket here!</h1>
	 <hr/>
        <div class="container">
        <div class="center_div">
        
	<h2><t:panelGroup>
 <h:outputLabel for="date" value="Date:"/>
 
</t:panelGroup></h2> 


<t:inputCalendar monthYearRowClass="yearRowStyle" weekRowClass="weekRowStyle"
        currentDayCellClass="selectedDayCellStyle" value="#{CreateTicketBean.date}"/>
 <br/>	
		
				<h2>Interval:</h2>
				<table border="2">
				<tr>
				<td>startTime (HH:MM) :</td>
				
				<td><t:inputText id="StartTimeS" forceId="true" value="#{CreateTicketBean.startTimeS}" maxlength="5" >
				<f:convertDateTime pattern="HH:mm" timeZone="#{CreateTicketBean.timeZone}"/>
				</t:inputText>
				</td>
				</tr>
				<tr>
	           <td> endtime (HH:MM):</td>
				<td><t:inputText id="EndTimeS" forceId="true" value="#{CreateTicketBean.endTimeS}" maxlength="5">
				<f:convertDateTime pattern="HH:mm" timeZone="#{CreateTicketBean.timeZone}"/>
				</t:inputText>
				</td>
				</tr>
				</table>
				<br/>
				<h2>Description:</h2> 
				<t:inputTextarea rows="5" id="Description" forceId="true" value="#{CreateTicketBean.description}" />	
			<br/>
		      
            <t:commandButton value="Send" action="#{CreateTicketBean.createTicket}" />
             <t:commandButton value="Save" action="#{CreateTicketBean.saveDraft}" />
				
	</div>
	 <p align="right"><t:commandLink value="Back" action="backCreateTicket"></t:commandLink></p>
      </div>
    
    <t:messages  style="color:blue" /> 
	</h:form>
</f:view>

</body>
</html>